<!-- End Live Search -->
<ul id="sidebar-nav">
	<li>
		<a href="#" class='<?php echo (strtolower($this->arrParam['controller']) == "user-admin")?"active":""?>'>Quản lý tài khoản</a>
		<ul class="drop" style="<?php echo (strtolower($this->arrParam['controller']) == "user-admin")?"display:block":""?>">
			<li>
				<a href="/admin/user-admin"><img src="<?php echo $this->imgUrl."/"?>more_arrow.png"/>Quản trị admin user</a>
			</li>
		</ul>
	</li>    
	<li>
		<a href="#" class='<?php echo (strtolower($this->arrParam['controller']) == "advertising" 
										|| strtolower($this->arrParam['controller']) == "channel" 
										|| strtolower($this->arrParam['controller']) == "advertising-channel" 
										|| strtolower($this->arrParam['controller']) == "product" 
		)?"active":""?>'>Quản lý quảng cáo</a>
		<ul class="drop" style="<?php echo (strtolower($this->arrParam['controller']) == "advertising" 
											|| strtolower($this->arrParam['controller']) == "channel" 
											|| strtolower($this->arrParam['controller']) == "advertising-channel"
											|| strtolower($this->arrParam['controller']) == "product" 
		)?"display:block":""?>">
			<li>
				<a href="/admin/advertising"><img src="<?php echo $this->imgUrl."/"?>more_arrow.png"/>Quản trị quảng cáo</a>
			</li>
			<li>
				<a href="/admin/channel"><img src="<?php echo $this->imgUrl."/"?>more_arrow.png"/>Quản trị kênh</a>
			</li>
			<li>
				<a href="/admin/advertising-channel"><img src="<?php echo $this->imgUrl."/"?>more_arrow.png"/>Link</a>
			</li>
			<li>
				<a href="/admin/product"><img src="<?php echo $this->imgUrl."/"?>more_arrow.png"/>Sản phẩm</a>
			</li>
		</ul>
	</li>    
	<li>
		<a href="#" class='<?php echo (strtolower($this->arrParam['controller']) == "analytics" 
		)?"active":""?>'>Tổng hợp</a>
		<ul class="drop" style="<?php echo (strtolower($this->arrParam['controller']) == "analytics" 
		)?"display:block":""?>">
			<li>
				<a href="/admin/analytics/by-day"><img src="<?php echo $this->imgUrl."/"?>more_arrow.png"/>Tổng hợp click theo ngày</a>
			</li>
		</ul>
	</li>    
</ul>
<!-- End SideBar -->
<script type="text/javascript">
//Menu sidebar
	$('#sidebar-nav > li > a').click(function(){
		if ($(this).attr('class') != 'active'){
			$('#sidebar-nav li ul').slideUp();
			$(this).next().slideToggle();
			$('#sidebar-nav li a').removeClass('active');
			$(this).addClass('active');
		}else{
			$('#sidebar-nav li ul').slideUp();
			$('#sidebar-nav li a').removeClass('active');
		}
		return false;
	  });
</script>
